PreviousNextTracker indexSee it online !

(217/304) 1548 - PHPParserPlugin parse error <?= f("x") ?>

Valid PHP code:
<?= f("x") ?>

generate error '<?php expected' on '?>'

Single quotes are ok.

jEdit 4.5, PHPparserPlugin 2.0.0

Submitted mxhec - 2012-02-07 11:24:44 Assigned
Priority 5 Labels
Status open Group
Resolution None

Comments

2012-02-07 12:32:56
kpouer

<?= f("x") ?>
do not generate warning
<? f("x") ?>
does, but it is not a bug it is a feature.
You can deactivate this one in the plugin options :
report
<? used instead of <?php

2012-02-07 12:32:56
kpouer

- **status**: open --> closed-invalid

2012-02-07 12:56:23
kpouer

Finally with that example the bug occurs

<?php
if (true) {
?>
...
<?= f("x") ?>
...
<?php
}
?>

2012-02-07 12:56:23
kpouer

- **assigned_to**: nobody --> kpouer
- **status**: closed-invalid --> open

2014-08-25 02:21:00.653000
ezust

- **assigned_to**: Matthieu Casanova --> nobody
- **Group**: -->